<nav class="navbar navbar-default navbar-static-top">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
			data-target="#eiscu-top-nav">
			<span class="sr-only">切换导航</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		</button>
		<span class="navbar-brand">EISCU</span>	
	</div>
	<div class="navbar-collapse collapse" id="eiscu-top-nav">
		<ul class="nav navbar-nav">
			<li {% if url_for('main.index') is current_link %} class="active"	{% endif %}
			><a href="{{ url_for('main.index') }}">首页</a></li>
			<li {% if url_for('main.hot') is current_link %} class="active"	{% endif %}
			><a href="{{ url_for('main.hot') }}">热门</a></li>
			<li {% if url_for('main.write') is current_link %} class="active" {% endif %}
			><a href="{{ url_for('main.write')}}">发表文章</a></li>
			<li {% if url_for('main.recommend') is current_link %} class="active" {% endif %}
			><a href="{{ url_for('main.recommend') }}">推荐文章</a></li>
			<li {% if url_for('main.about') is current_link %} class="active"	{% endif %}
			><a href="{{ url_for('main.about') }}">关于</a></li>
		</ul>
		<ul class="nav navbar-nav navbar-right">
		{% if current_user.can(Permission.ADMINSTER) %}
			<li><a href="{{url_for('main.moderate_article')}}"> 审核文章</a></li>
		{% endif %}
{% if current_user.can(Permission.MODERATE_COMMENTS) %}
<li><a href="{{url_for('main.moderate')}}"> 审核评论</a></li>
{% endif %}
			{% if current_user.is_authenticated %}

			<li><a href="{{ url_for('main.user_info',username=current_user.username) }}">{{ current_user.username }}</a></li>

			<li><a href="{{ url_for('auth.logout') }}">退出</a></li>
			{% else %}
			<li><a href="{{ url_for('auth.login') }}">登录</a></li>
			<li><a href="{{ url_for('auth.register') }}">注册</a></li>
			{% endif %}
		</ul>
	</div>
</div>

</nav>